Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.7
|
Leadtools.Caching Assembly > Leadtools.Caching Namespace > FileCache Class > Set Method : Set<T>(CacheItem<T>,CacheItemPolicy) Method |
public override void Set<T>( CacheItem<T> item, CacheItemPolicy policy )
'Declaration
Public Overloads Overrides Sub Set(Of T)( _ ByVal item As CacheItem(Of T), _ ByVal policy As CacheItemPolicy _ )
'Usage
Dim instance As FileCache Dim item As CacheItem(Of T) Dim policy As CacheItemPolicy instance.Set(Of T)(item, policy)
@Override public <T> void set(CacheItem<T> item, Class<?> classOfT, CacheItemPolicy policy)
public: void Setgeneric<typename T> ( CacheItem<T^>^ item, CacheItemPolicy^ policy ) override
If the item is already in the cache, then it will be replaced with the new item and its policy updated.